﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Model = TMS.ProjectServiceModel;
using TMS.ProjectService;
using TMS.ProjectServiceImplement;

namespace TMSPortal.Biz
{
    public class ProjectServiceBiz
    {
        private static IProjectService projectService = new ProjectService();

        public static List<Model.Project> GetAllProject()
        {
            return projectService.GetAllProject();
        }

        public static Model.Project Get(int id)
        {
            return projectService.Get(id);
        }

        public static Model.Project Insert(Model.Project project)
        {
            return projectService.Insert(project);
        }

        public static Model.Project Update(Model.Project project)
        {
            return projectService.Update(project);
        }

        public static void Delete(int id)
        {
            projectService.Delete(id);
        }
    }
}